package com.heima.crm.pojos.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 合同表
 * </p>
 *
 * @author author
 * @since 2023-07-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_contract")
public class TbContract implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 合同编号
     */
    private String contractId;

    /**
     * 客户姓名
     */
    private String customName;

    /**
     * 手机号
     */
    private String tel;

    /**
     * 购买学科id
     */
    private Long subjectId;

    /**
     * 购买课程id
     */
    private Long courseId;

    /**
     * 合同地址
     */
    private String contractUrl;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    private Long createId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    private Long updateId;

    /**
     * 渠道来源
     */
    private Long channel;

    /**
     * 活动信息
     */
    private Long saleMassageId;
    /**
     * 是否打折
     */
    private Short isDiscount;
    /**
     * 打折后价格
     */
    private Double count;
    /**
     * huodong信息
     */
    private String discountType;
    private Short isTransform;
    private String courseName;
    private String subjectName;
}
